.PHONY: all clean

all: solution.png final.pdf

solution.png:
	mkdir -p build
	cd build && cmake .. && make run
	gnuplot -e "set term png; set output 'solution.png'; splot 'build/solution.gpl' with lines"

final.pdf:
	xelatex final.tex
clean:
	rm -rf build
	rm -f *.aux *.log *.pdf *.png
